package com.xjscrm.common.enums;

public enum MerConfigKeyEnum {
    /**
     * 短信验证配置
     */
    SYS_BRAND_CONFIG("sys_brand_config","系统品牌设置"),

    APP_FUCTION_CONFIG("app_fuction_config","app功能设置"),

    KICKING_LANGUAGE_SKILL_CONFIG("kicking_language_skill_config","踢人话术设置"),

    //客户群设置
     WWGROUP_CONFIG("wwgroup_config","客户群设置");




    private String value;
    private String desc;
    MerConfigKeyEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }
    public String getValue() {
        return value;
    }
    public String getDesc() {
        return desc;
    }
    public static MerConfigKeyEnum getValue(String value) {
        if (value == null) {
            return null;
        }
        for (MerConfigKeyEnum type: MerConfigKeyEnum.values()) {
            if (type.getValue().equals(value) ) {
                return type;
            }
        }
        return null;
    }
    public static String getDesc(String value) {
        if(getValue(value) == null){
            return null;
        }
        return getValue(value).getDesc();
    }
}
